gdk/x11: Check if we have access to GL before using GLX API
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 20 Jan 2017 18:07:01 +0000 (18:07 +0000)
committerJeremy Bicha <jbicha@debian.org>
Mon, 16 Apr 2018 23:55:32 +0000 (00:55 +0100)
commite21ebf5709df0cf49a298bb9afc7fc2731fcdc26
treee34abb15bbae1cef1703114328de8008a0defe14
parent0a5dd64fc2d11da6b22a858bdfa5e94c1101783d
gdk/x11: Check if we have access to GL before using GLX API

If the platform does not have access to libGL then any call to GL and
GLX API through libepoxy will fail with an assertion. Until such time
that libepoxy exposes API for us to use, we can simply dlopen libGL
ourselves and do a symbol check.

[smcv: fix typo]

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=775279
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847366
Applied-upstream: no, GTK+ 4 added a dependency on newer libepoxy instead

Gbp-Pq: Name gdk-x11-Check-if-we-have-access-to-GL-before-using-G.patch
gdk/x11/gdkglcontext-x11.c